package com.aaa.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "goods")
public class Goods {

    @TableId(type = IdType.INPUT )
    private Integer gid;
    private String gname;
    private String synopsis;//产品简介
    @TableField
    private String color;
    @TableField
    private String ram;
    private Double gmoney;
    private Integer gnumber;
    private Integer gstate;
    private String photo;
    private Integer lock; //库存锁定
    private Integer vendibility; //在售数量


}
